package com.song.user.service;


import com.song.user.pojo.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author 宋伟宁
 * @Date 2024/1/5
 * @Version 1.0
 **/
@Transactional
public interface UserService {

     List<User> findAll();

     User findById(Long id);

     boolean save(User user);

     boolean delete(Long id);

     int findUserByUsername(String username);

     User login(String username, String password);

}
